import request from '../../../request.js'

/**
 * 查询用户购物车信息
 * 
 */
function selectCarAll(data) {
	return request({
		url: '/api/wx/car/list',
		method: 'GET',
		data: data,
		header: {
			Authorization: uni.getStorageSync('token'),
			'Content-Type': 'application/x-www-form-urlencoded'
		},
	})
}

/**
 * 用户删除购物车中的信息
 * 
 */
function deleteChatByCommId(data) {
	return request({
		url: '/api/wx/car/delete/commId',
		method: 'GET',
		data: data,
		header: {
			Authorization: uni.getStorageSync('token'),
			'Content-Type': 'application/x-www-form-urlencoded'
		},
	})
}

//一定要声明暴露函数，可以被引用 
module.exports = {
	selectCarAll,
	deleteChatByCommId
}